package com.github.data_manage.domain.po

import com.github.data_manage.domain.dto.ContrastIndexDto
import com.github.data_manage.util.JpaFundContrastIndexJsonConverter
import jakarta.persistence.*
import org.springframework.format.annotation.DateTimeFormat
import java.math.BigDecimal
import java.time.LocalDate
import java.time.LocalDateTime

/**
 * 基金月度回撤
 *@author CHN
 *@since 2024-08-11 15:34
 */
@Entity
@Table(name = "t_fund_return_data")
open class FundReturnData {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    open var id: Int? = null

    open var fundId: Int? = null

    open lateinit var fundName: String

    // 月份,输入格式为 yyyy/MM,数据库中为当月第一天 如excel中为 2024/08,则数据库中为 2024/08/01
    @DateTimeFormat(pattern = "yyyy-MM")
    open var time: LocalDate? = null

    open lateinit var value: BigDecimal


}
